package com.gopay.common.cipher.utils;

import java.util.List;

/**
 * 
 * @author ssj
 *
 */
public class InUtils {
	
    /**
     * 针对原生sql封装的方法,针对in查询使用 
     * ssj
     * @param param
     * @return
     */
    public static  String getListIn(String param){
    	List<String> paramList=SensitiveInfoUtils.getAllHisCipherText(param);
    	StringBuffer bf=new StringBuffer();
    	bf.append("(");
    	for (int i = 0; i < paramList.size(); i++) {
    		String key=paramList.get(i);
    		bf.append("'" + key + "'");
        	if(i != paramList.size() - 1){
        		bf.append(",");
        	}
		}
    	bf.append(")");
    	return bf.toString();
    	
    }


}
